home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 120 / 120.d81 / mahjong boot (.txt) < prev    next >
Commodore BASIC  |  2022-08-26  |  2KB  |  48 lines

  1. 0 rem mahjong boot * rbcook * 10.93
  2. 100 ifdv<>0then130
  3. 110 dv=peek(186):ifdv<8thendv=8
  4. 120 gosub60000:load"obj.mahjong",dv,1
  5. 130 sys4608
  6. 140 poke53280,1:poke53281,1:poke198,0
  7. 150 print"[147]"tab(7)"[152][\\\\\\\\\\\\\\\\\\\\\\\]"
  8. 160 printtab(7)"#     m a h j o n g     [152]$[144]@"
  9. 170 printtab(7)"[152]&+++++++++++++++++++++++'[144]@"
  10. 180 printtab(7)"[152]#                       $[144]@"
  11. 190 printtab(7)"[152]# f1 [144]solitaire game     [152]$[144]@"
  12. 200 printtab(7)"[152]# f3 [144]new tournament     [152]$[144]@"
  13. 210 printtab(7)"[152]# f5 [144]restart tournament [152]$[144]@"
  14. 220 printtab(7)"[152]# f7 [144]tournament game    [152]$[144]@"
  15. 230 printtab(7)"[152]# f8 [144]return to loadstar [151]$[144]@"
  16. 240 printtab(7)"[152]#                       $[144]@"
  17. 250 printtab(7)"[152]^!!!!!!!!!!!!!!!!!!!!!!!_[144]@"
  18. 260 printtab(7)"[144] @@@@@@@@@@@@@@@@@@@@@@@@@":ifa$="[133]"then300
  19. 270 printtab(14)"[151]player up%[150]"a+1+(a=8)*8""
  20. 280 forl=1to7step2:printtab(4)"[144]player[152]"l"[157][144]%[154]"sc(l);
  21. 290 printtab(22)"[144]player[152]"l+1"[157][144]%[154]"sc(l+1):next
  22. 300 geta$:ifa$="[133]"thensys4614:goto140
  23. 310 ifa$="[134]"thenpoke253,0:poke254,0:sys4614:forl=1to8:sc(l)=0:next:a=0:goto360
  24. 320 ifa$="[135]"thensys4614:a=0:goto360
  25. 330 ifa$="[136]"thensys4618:goto360
  26. 340 ifa$="[140]"then40000
  27. 350 goto300
  28. 360 a=a+1+(a=8)*8:sc(a)=sc(a)+peek(252)*256+peek(251):goto140
  29. 10000 open15,8,15,"s0:mahjong boot":close15:save"mahjong boot",8:end
  30. 40000 a$="hello connect":fori=8to9:close2:open2,i,2:close2:ifstthen40020
  31. 40010 close15:open15,i,15,"r0:"+a$+"="+a$:input#15,er:close15:ifer=63then40030
  32. 40020 next:print"[147]":poke2048,0:poke44,8:poke53272,23:poke186,8:end
  33. 40030 poke646,peek(53281):print"[147]load"chr$(34)a$chr$(34)","i
  34. 40040 print"run":poke44,8:poke2048,0:poke631,13:poke632,13:poke198,2:end
  35. 60000 poke53280,0:poke53281,0:print"[147]"
  36. 60010 z$=" [152]                                      ":poke214,10:print
  37. 60020 print" [155][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184][184]":fori=0to11:printz$:next
  38. 60030 print" [151][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][185][152]"
  39. 60040 z$(0)="  [205] [193] [200] [202] [207] [206] [199]":z$(1)="  by [210]obert [194]. [195]ook"
  40. 60050 z$(2)="([195]) 1994 by [211]oftdisk [208]ublishing"+chr$(13)
  41. 60060 z$(3)="[212]his program is the copyrighted work"
  42. 60070 z$(4)="of [211][207][198][212][196][201][211][203] [208][213][194][204][201][211][200][201][206][199].  [201]t is not"
  43. 60080 z$(5)="shareware or in the public domain."
  44. 60090 z$(6)="[210]eport illegal distribution of":z$(7)="this program by calling"
  45. 60100 z$(8)="1-800-831-2694 or 1-318-221-8718.":poke214,12:print
  46. 60110 fori=0to8:printtab(20-(len(z$(i))/2))""z$(i):next
  47. 60120 print"":return
  48.